// 天翼云工单查询
export const queryOrder = (request, params, data) => {
  return request({
    url: 'api/v1/order/query',
    method: 'post',
    params: params,
    data
  })
}

// 错误工单重发
export const orderResend = (request, data) =>
  request({
    url: 'api/v1/order/resend',
    method: 'post',
    data
  })

// 原始工单详情
export const originOrderSeq = (request, originOrderSeq) =>
  request({
    url: 'api/v1/originOrder/query/' + originOrderSeq,
    method: 'get'
  })

// 基本工单详情
export const orderBaseInfo = (request, orderId) => {
  return request({
    url: `api/v1/basic/order/${orderId}/detail`,
    method: 'get'
  })
}

// oss工单信息
export const ossInfo = (request, orderId) => {
  return request({
    url: `api/v1/oss/order/${orderId}/detail`,
    method: 'get'
  })
}

// 更多工单信息
export const moreInfo = (request, orderId) => {
  return request({
    url: `api/v1/ctyun/order/${orderId}/detail`,
    method: 'get'
  })
}

// 导出oss 工单信息
export const exportoss = orderId => `api/v1/oss/order/${orderId}/export`

// 导出ctyun 工单信息
export const exportctyun = (orderId, type) => `api/v1/ctyun/order/${orderId}/${type}/export`

// 导出原始工单
export const originOrder = 'api/v1/originOrder/export/'
